import Iterator$1 from './iterator'
class IteratorObject implements Iterator$1 {
    private data = {};
    private step = 0;
    private keys = [];
    constructor(data: object) {
        this.data = data;
        this.keys = Object.keys(data) as [];
    }
    private next() {
        let result = { value: undefined, done: true };
        if(this.step < this.keys.length) {
            result = { value: this.data[this.keys[this.step]], done: false };
            this.step++;
        }
        return result;
    }
    public [Symbol.iterator]() {
        return this;
    }
}
export default IteratorObject;